package yf.mall.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;



import yf.mall.entity.AppProductMaterialEntity;
import yf.mall.vo.AppProductMaterialVo;

                    
/**
 * 商品素材关联表实体
 * 表名 app_product_material
 *
 *
 *
 * @date Sun Jul 30 09:00:08 CST 2023
 */
@Data
public class AppProductMaterialUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //主键，
            @ExcelProperty("主键，")
            private Long id;
        
                        //素材ID
            @ExcelProperty("素材ID")
            private Long materialId;
        
                        //商品ID
            @ExcelProperty("商品ID")
            private Long pid;
        
                        //备注
            @ExcelProperty("备注")
            private String remark;
        
                        //创建时间
            @ExcelProperty("创建时间")
            private Date createTime;
        
    
    public AppProductMaterialUp() {

    }

    public AppProductMaterialVo toVo() {

        AppProductMaterialEntity entity = new AppProductMaterialEntity();
            AppProductMaterialVo vo = new AppProductMaterialVo(entity);
                                    entity.setId(id);
            
                                    entity.setMaterialId(materialId);
            
                                    entity.setPid(pid);
            
                                    entity.setRemark(remark);
            
                                    entity.setCreateTime(createTime);
            
        
        return  vo;
    }



}
